﻿package tests;
import mclight.buttons.PushButton;
import standard.skins.PushButtonSkin;

class SkinTest extends GenericTest
{
	public function new() 
	{
		super();
	}
	
	override function init()
	{	
		var buttonSkin = new PushButtonSkin();
		buttonSkin.text = 'Push button';
		buttonSkin.calculateMinSize();
		buttonSkin.width = buttonSkin.minWidth;
		buttonSkin.height = buttonSkin.minHeight;
		buttonSkin.update();
		addChild(buttonSkin.object);
		
		var button = new PushButton(this, 100, 100, 'Push button');
	}
}